<style scoped>
  .rj-topbar {
    height: 50px; line-height: 50px; background: #f7f7f7; text-align: center; font-size: 16px; border-bottom: 1px solid #bdbbbc; position: relative
  }
  .list {
    background: #eee;
  }
  .weui-form-preview {
    background-color: #fff;
    margin: 5px;
    border-radius: 5px;
  }
  .weui-form-preview__hd label, .weui-form-preview__hd em {
    font-size: .9em !important;
  }
  .weui_navbar_item {
    font-size: 14px;
  }
  .weui_navbar_item.weui_bar_item_on {
    color: #3cc51f;
  }
  .weui-loadmore_line .weui-loadmore__tips {
    background-color: #eee;
  }
  .list {
    overflow: auto;
  }
  .rj-cell {
    display: inline-block;
    font-size: 0;
    padding: 5px 15px;
  }
  .rj-cell.max span{
    font-size: 16px;
    padding-right: 20px;
  }
  .rj-cell.minpad{
    padding-right: 10px !important;
  }
  .rj-cell label {
    color: #333;
    font-size: 14px;
  }
  .rj-cell span {
    padding-left: 5px;
    font-size: 14px;
    color: #333;
  }
  .rj-cell.note{
    width: 100%;
  }
  .rj-cell.note label{
    float: left;
  }
  .rj-cell.note span{
    width: 80%;
    display: inline-block;
  }
  .weui-cells {
    margin-top: 0;
  }
  .rj-wrap {
    background: #eee;
    overflow:auto;overflow-x: hidden
  }
  .rj-cont {
    background: #fff;
  }
  .weui-panel {
    background: #eee;
  }
  .rj-cont-tit {
    margin: 0;
    border-radius: 0;
  }
  .weui-panel {
    margin-top: 0;
    text-align: left;
  }
  .demos-content-padded {
    padding: 15px;
  }
  .attachimg {
    /*width: 100%;*/
  }
  .tipp {
    position: absolute;top: 0px;background: rgba(255,0,0,0.5);color:#fff;display: inline-block;width: 85px;text-align: center;
  }
  .rj-cell-child-tit {
    background: #f9f9f9;
    font-size: 14px;
    padding: 5px 15px;
    border-bottom: 1px solid #eee;
  }
  .tit label, .tit span {
    font-size: 16px;
  }
  .tit label {
    padding-right: 20px;
  }
  .weui-panel.weui-panel_access {
    padding-bottom: 10px;
  }
  .weui-panel__bd:not(.base) {
    width: 98%;
    padding: 0 1% 2px 1%;
  }
  .rj-cont-tit:not(.base) {
    border-radius: 5px;
  }
  .weui-cells_form {
    background: #fbfbfb;
  }
  .weui-cell {
    background: #fff;
  }
  .weui-cells__title {
    text-align: left;
    background: #eee;
  }
  .oitem {
    padding: 3px;
  }
  .hide {
    display: none;
  }
  #acts {
    font-size: 0;
  }
  #acts span {
    font-size: 14px;
  }
  .halfbtn {
    display: inline-block;
    width: 49%;
  }
  .weui-label {
    text-align: left;
  }

  .weui_uploader_input_wrp {
    float: left;
    position: relative;
    margin-right: 9px;
    margin-bottom: 9px;
    width: 77px;
    height: 77px;
    border: 1px solid #D9D9D9;
  }
  .weui_uploader_hd {
    padding-top: 0;
    padding-right: 0;
    padding-left: 0;
  }
  .weui_uploader_files {
    list-style: none;
  }
  .weui_uploader_input_wrp:before {
    width: 2px;
    height: 39.5px;
  }
  .weui_uploader_input_wrp:before, .weui_uploader_input_wrp:after {
    content: " ";
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    background-color: #D9D9D9;
  }
  .weui_uploader_input {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  }
  .weui_uploader_input_wrp:after {
    width: 39.5px;
    height: 2px;
  }
  .weui_uploader_bd {
    overflow: hidden;
  }
  .weui_cell {
    padding: 10px 15px;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .weui-media-box {
    text-align: left;
  }
  .viewpage {
    height: 100%;
    background: #eee;
  }
</style>
<template>
  <div class="viewpage">
    <div style="height: 50px; line-height: 50px; background: #f7f7f7; text-align: center; font-size: 16px; border-bottom: 1px solid #bdbbbc; position: relative">
       合同价格调整详情
      <a href="javascript:;" @click="$router.back(-1)" style="position: absolute; left: 10px; top: 8px">
        <img src="../../assets/back.png" style="width: 20px" />
      </a>
    </div>
    <div class="weui-panel weui-panel_access">
      <div class="weui-panel__bd base" style="border-bottom: 2px solid #fff;">
        <div class="weui-form-preview billitem rj-cont-tit base">
          <div class="rj-cell max">
            <label>编号：</label>
            <span>{{baseInfo.code}}</span>
          </div>
          <div class="rj-cell max">
            <label>合同：</label>
            <span>{{baseInfo.contractname}}</span>
          </div>
          <div class="rj-cell max">
            <label>种植户：</label>
            <span>{{baseInfo.grower}}</span>
          </div>
          <div class="rj-cell max">
            <label>产品：</label>
            <span>{{baseInfo.productname}}</span>
          </div>
          <div class="rj-cell max">
            <label>规格：</label>
            <span>{{baseInfo.spename}}</span>
          </div>
          <div class="rj-cell max">
            <label>修改前单价：</label>
            <span>{{baseInfo.previousprice}}</span>
          </div>
          <div class="rj-cell max">
            <label>单价：</label>
            <span>{{baseInfo.price}}</span>
          </div>
          <div class="rj-cell max">
            <label>申请人：</label>
            <span>{{baseInfo.operator}}</span>
          </div>
          <div class="rj-cell max">
            <label>备注：</label>
            <span>{{baseInfo.remark}}</span>
          </div>
          <div class="rj-cell max">
            <label>创建日期：</label>
            <span>{{baseInfo.createtime}}</span>
          </div>
        </div>
      </div>
      <OperationLogs2 :orderid="id" :srguid="''" :departid="''"></OperationLogs2>
    </div>
  </div>
</template>

<script>
  import OperationLogs2 from '../common/OperationLogs2'

  export default {
  name: 'ViewScrap',
  data () {
    return {
      id: '',
      baseInfo: {},

    }
  },
  components: {
    OperationLogs2
  },
  created() {

  },
  mounted () {

    this.id = this.$route.query.id;
    this.getBaseInfo(this.id);

  },
  methods: {
    getBaseInfo: function (id) {
      this.axios({
        method: 'get',
        url: '/harvest/EditContractprice!detail.action',
        params: {editContractid: id}
      }).then(response => {
        if (response.data.msg == 'success') {
          let data = response.data;
          this.baseInfo = data.editcontractprice;
        } else {
          this.toastError('系统错误');
        }
      });
    },
  }
}
</script>
